<script lang="ts" setup>
import { useUserStore } from '@/store'
import Admin from './components/Admin.vue'
import Editor from './components/Editor.vue'

const userStore = useUserStore()
const isAdmin = userStore.roles.includes('admin')
</script>

<template>
  <component :is="isAdmin ? Admin : Editor" />
</template>
